import VXETable from 'vxe-table'
import Children from '@/components/scVxeTable/children.vue'
VXETable.renderer.add('childrenTableRender', {
    renderExpand(renderOpts, params) {
        // const { row } = params
        const { tablecode, url, key, gridOps } = renderOpts.attrs;
        let param = {};
        param[key] = params.$table.getRowid(params.row)
        const newurl = url.cp().setParam(param);
        return <Children tablecode={tablecode} url={newurl} params={renderOpts.attrs.params} gridOps={gridOps} >
        </Children>
    }
})